using System;
using System.Runtime.CompilerServices;

namespace Be.Timvw.Framework
{
    public static class EventHelper
    {
        [MethodImpl(MethodImplOptions.NoInlining)]
        public static void Raise<T>(EventHandler<T> handler, object sender, T e) where T : EventArgs
        {
            if(handler != null)
            {
                handler(sender, e);
            }
        }
    }
}